package com.tanhua.dubbo.api;

import com.tanhua.model.mongo.Peachblossom;
import com.tanhua.model.mongo.PeachblossomCount;
import org.bson.types.ObjectId;

public interface PeachblossomApi {
    //上传语音
    void save(Peachblossom peachblossom);
    //接收语音
    Peachblossom find(Long userId);
    //查询今日接收次数
    PeachblossomCount findCount(Long userId, String date);

    //添加或修改接收次数
    void saveOrUpdateCount(Long userId, String date, int i);

    //改变pickkup状态
    void updatePickkup(ObjectId id);
}
